<!--
 * @Author: your name
 * @Date: 2021-08-24 14:22:34
 * @LastEditTime: 2021-08-24 14:38:52
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \briup\5-javascript\day02\1-函数.html
-->
<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script>
        var obj = new Object();
        console.log(obj);
        obj.name = 'lisi'
        obj.age = 12;
        console.log(obj);
        //对象字面量
        var obj1 = {
            name: 'lisi',
            age: 12
        }
    </script>
</head>

<body>

</body>

</html>